package com.web.controller;

import com.server.apis.ServicesApis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/** @author HKC */
@RestController
@RequestMapping("/test")
public class WebController {
  @Value("${aa.bb}")
  String value;
  @Autowired private ServicesApis servicesApis;

  @RequestMapping("/getTest")
  public String getTest() {
    return servicesApis.get("通过web调用的");
  }
  @RequestMapping("/value")
  public String value(){
    return "value:" + value;
  }
}
